Class to represent a container for input data to a kohonen map
Kohonen pattern constructor
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(kohonen_pattern) | :: | current_pattern | 
 A   | 
        |||
| real(kind=wp), | intent(inout), | dimension(:,:) | :: | input | 
 A real array  | 
        |
| character(len=*), | optional | :: | name | 
 A character string with the name of the pattern  | 
        
Kohonen pattern destructor
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(kohonen_pattern) | :: | current_pattern | 
 A   | 
        
Kohonen pattern accessor
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(kohonen_pattern) | :: | current_pattern | 
 A   | 
        |||
| type(kohonen_prototype), | intent(inout) | :: | pattern_value | 
kohonen_pattern_mutator
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(kohonen_pattern) | :: | current_pattern | 
 A   | 
        |||
| type(kohonen_prototype), | intent(inout) | :: | pattern_value | 
Subroutine to print a Kohonen pattern
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(kohonen_pattern) | :: | current_pattern | 
 A   | 
        |||
| integer, | intent(inout), | optional | :: | unit_ | 
 An integer variable with the number of the unit where the patterns will be printed  | 
        
Function to calculate the number of rows (samples) in a pattern
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(kohonen_pattern) | :: | current_pattern | 
 A   | 
        
An integer with the number of rows (samples) in a pattern
Function to calculate the number of columns (variables) in a pattern
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(kohonen_pattern) | :: | current_pattern | 
 A   | 
        
An integer with the number of columns (variables) in a pattern
type kohonen_pattern !! Class to represent a container for input data to a kohonen map private type(kohonen_prototype) :: pattern character(len=NUMCHAR) :: pattern_name contains procedure,public :: create => kohonen_pattern_create procedure,public :: destroy => kohonen_pattern_destroy procedure,public :: get => kohonen_pattern_accessor procedure,public :: set => kohonen_pattern_mutator procedure,public :: print => kohonen_pattern_print procedure,public :: get_nrow => kohonen_pattern_nrow procedure,public :: get_ncol => kohonen_pattern_ncol ! end type kohonen_pattern